package com.wmmb.datasource;

public class CustomerContextHolder {

	public static final String DATA_SOURCE_UBCENTER = "ubcenter";

	public static final String DATA_SOURCE_UCENTER = "ucenter";

	private static final ThreadLocal<String> contextHolder = new ThreadLocal<String>();

	static {
		contextHolder.set(DATA_SOURCE_UBCENTER);
	}

	public static void setCustomerType(String customerType) {
		contextHolder.set(customerType);
	}

	public static String getCustomerType() {
		return contextHolder.get();
	}

	public static void clearCustomerType() {
		contextHolder.remove();
	}

}
